<div fwa-layout-container data-main="true" class="full-height full-width">
    <div  fwa-layout-box="center" class="full-width full-height full-overflow-y">
		 <div fwa-layout-container data-main="true" class="full-height full-width">    
		    <div  fwa-layout-box="north" style="height:420px;">
			      <div class="col-xs-7  full-height">  
							<div class="full-width title" style="margin-top: 8px;">
								<div class="col-xs-12" >
									<h6>
										<b>预警信息</b>
									</h6>
								</div>
							</div>
							<div class=" full-height full-width background-white" >
							    <div class=" full-height" style="padding:10px 20px 10px 10px;width:100%"> 
							       <div class="row form-group" >
					                 <div class="col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>受理日期:
										 </label>
										<div class="col-xs-8">
											    <input class="form-control" fwa-datetime="" data-type="month" data-format="yyyy-mm-dd" ng-model="warningFrom.warnDate">  
									    </div>
								     </div>
								     
								     <div class=" col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>预警编号:
										</label>
										<div class="col-xs-8">
											  <input class="form-control" ng-model="warningFrom.warnNoBiz" >
										</div>
								 	 </div>								     
						        </div>
						        <div class="row form-group">
						        	<div class=" col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>案件来源:
										</label>
										<div class="col-xs-8">
											  <select class="form-control" name="source" ng-model="warningFrom.source">
									                <option value="">--请选择--</option>
									                <option ng-repeat="source in sourceList"
													value="{{source.codeNo}}" selected="{{source.codeNo === warningFrom.source}}">{{source.codeDesc}}</option>
									            </select>
										</div>
								 	 </div>
								 	<div class="col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>来源方式:
										</label>
										<div class="col-xs-8">
											  <select disabled="disabled" class="form-control" name="sourceType" ng-model="warningFrom.sourceType">
									                <option value="">--请选择--</option>
									                <option ng-repeat="sourceType in sourceTypeList"
													value="{{sourceType.codeNo}}" selected="{{sourceType.codeNo === warningFrom.sourceType}}">{{sourceType.codeDesc}}</option>
									            </select>
										</div>
									 </div>
									 
						        </div>
						        <div class="row form-group">
						        <div class="  col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>来源对象:
										</label>
										<div class="col-xs-8">
											<input type="text" class="form-control"   ng-model="warningFrom.sourceObject">
										</div>
							         </div>
								 	<div class=" col-xs-6">
										<label class="col-xs-4 control-label text-right">
											联系人:
										</label>
										<div class="col-xs-8">
											  <input type="text" class="form-control"   ng-model="warningFrom.contact" >
										</div>
									 </div>
									 
						        </div>
						        <div class="row form-group">
						        	<div class="  col-xs-6">
										<label class="col-xs-4 control-label text-right">
											联系电话:
										</label>
										<div class="col-xs-8">
											<input type="text" class="form-control"   ng-model="warningFrom.phone" >
										</div>
							         </div>
								 	<div class="  col-xs-6">
										<label class="col-xs-4 control-label text-right">
											联系邮箱:
										</label>
										<div class="col-xs-8">
											  <input type="text" class="form-control"   ng-model="warningFrom.mail" >
										</div>
									 </div>
									 
						        </div>
						        <div class="row form-group">
						        	<div class="  col-xs-6">
										<label class="col-xs-4 control-label text-right">
											联系地址:
										</label>
										<div class="col-xs-8">
											<input type="text" class="form-control"   ng-model="warningFrom.address" >
										</div>
							         </div>
						            <div class="col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>预警原因:
										</label>
										<div class="col-xs-8">
											<input type="text" class="form-control"   ng-model="warningFrom.summary">
										</div>
								     </div>									 
								</div>
								<div class="row form-group">
									<div class=" col-xs-6">
										 <label class="col-xs-4 control-label text-right">
										 	<span class="red">* </span>预警时段:
										 </label>
										 <div class="col-xs-8">
												<date-range-input ng-model="warningFrom.date" data-type="month"
													data-format="yyyy-mm-dd"></date-range-input>
										 </div>
									 </div>
									 <div class="col-xs-6">
										 <label class="col-xs-4 control-label text-right" ng-show="isWarnType">
										 	<span class="red">* </span>预警业务:
										 </label>
										 <div class="col-xs-8" ng-show="isWarnType">
											 <select class="form-control" ng-model="warningFrom.warnType"  ng-change="changeWarnType();">
									                <option value="">--请选择--</option>
									                <option ng-repeat="warnType in warnTypeList"
													value="{{warnType.codeNo}}" >{{warnType.codeDesc}}</option>
									          </select>
										 </div>
									 </div>								
								</div>
								 <div class="row form-group">
									<div class="col-xs-12" >
										<label class="col-xs-2 control-label text-right">
									           <span class="red">* </span>预警内容:
										</label>
									    <div class="col-xs-10">
												<textarea style="height:70px;" maxlength="1330"  class="form-control" ng-validation="{length:{rule:'0-100',msg:'字符不能超过100'}}" name="reason" ng-model="warningFrom.reason"></textarea>
									    </div>
									</div>
								</div>
								<div class="row form-group" >
								    <div class=" col-xs-6">
										<label class="col-xs-4 control-label text-right">
											<span class="red">* </span>处理方式:
										</label>
										<div class="col-xs-8">
											  <select class="form-control" name="process" ng-model="warningFrom.process" ng-change="isShowNotice()">
									                <option value="">--请选择--</option>
									                <option ng-repeat="process in processList"
													value="{{process.codeNo}}" selected="{{process.codeNo === warningFrom.process}}">{{process.codeDesc}}</option>
									            </select>
										</div>
									 </div>
									 <div class="  col-xs-6">
									    <div class="col-xs-12" ng-show="prcoessTypeFlag">
											<label class="col-xs-4 control-label text-right">
												<span class="red">* </span>处理:
											</label>
											<div class="col-xs-8">
											      <label class=" control-label text-left">
											      	 <a ng-click="warningNoticeDialog();">自查通知书</a>
											      </label>
											</div>
										</div>
									 </div>
								</div>
							 </div>
						 </div>
				  </div>
			      <div class="col-xs-5 full-height">
			           <div class=" row" style="margin-top: 8px;margin-right: 0px;">
				                <div class="col-xs-12 title" style>
									<div class="col-xs-12" >
										<div class="row">
											<h6>
												<b>医疗机构(<a ng-click="viewMedicalInfo();" ng-bind="warnMedicalCount"></a>)</b>
											</h6>
										</div>
									</div>
									<!--div class="col-xs-5 text-right" >
										<a ng-click="addMedical();">
											<b><span  ng-bind="medicalEditButtom"></span></b>
										</a>
									</div>-->
							    </div>
				                <div class="col-xs-12 background-white" style="height: 80px;">
				                      <div class=" col-xs-12" ng-show="warnMedicalCount > 0" ng-mouseout="mouseoutShow(warnMedicalData);" ng-mouseover="mouseoverShow(warnMedicalData);">
										 <div  class=" col-xs-9" style="padding-top:8px;">
											<div class="row" style="line-height: 28px;">
											    <div class="col-xs-8">
											   		机构编号: <span ng-bind="warnMedicalData.code"></span>
											   	</div>
											   	<div class="col-xs-4">
												   	<div ng-show="warnMedicalData.score!=null" class="full-width text-right" style="margin-left:-15px;">
												     -<span ng-bind="warnMedicalData.score"></span>
													</div>
											   	</div>
											</div>
											<div class="full-height" style="line-height: 28px;" >
												机构名称: <span ng-bind="warnMedicalData.name"></span>
											</div>
										</div>
										<div class="col-xs-3" style="line-height: 56px;">
											<div ng-show="warnMedicalData.show" class="full-width text-right" style="margin-top:-5px;">
												<a ng-click="marking(1,warnMedicalData,warnMedicalData.code,warnMedicalData.orgType);">记分</a>&nbsp;
											</div>
										</div>
									 </div>
									 <div class="full-width full-height text-center" ng-show="!warnMedicalCount || warnMedicalCount <= 0">
											<div class="col-xs-1">
											</div>
											<div class="col-xs-10 full-height" style="color:gray;margin-top: 7%;">
												<span>
													请通过右上角“新增”添加涉及医疗机构信息
												</span>
										    </div>
									</div>
				                </div>
				         </div>
				         <div class=" row" style="margin-top: 8px;margin-right: 0px;" >
				              <div class="col-xs-6" >
				                   <div class="row" style="margin-right: -4px;">
				                        <div class="col-xs-12 title">
											<div class="col-xs-7" >
												<div class="row">
													<h6>
														<b>医护人员(<a ng-click="viewStaffList();" ng-bind="warnStaffCount"></a>)</b>
													</h6>
												</div>
											</div>
											<div class="col-xs-5 text-right" >
												<a ng-click="addStaff();">
													<b>新增</b>
												</a>
											</div>
									    </div>
									</div>
					                <div class="row background-white full-overflow-y" style="height: 265px;margin-right: -4px;" >
					                        <div class="form-group col-xs-12" ng-class="{'cursor-pointer':data.show}" ng-mouseout="mouseoutShow(data);" ng-mouseover="mouseoverShow(data);" ng-repeat="data in warnStaffData">
												 <div class="col-xs-3" >
													<div class="row ">
														    <span ng-bind="data.name">
															</span>
													</div>
												</div>
												<div class="col-xs-3" >
													<div class="row">
														<span ng-bind="data.type"></span>
													</div>
												</div>
												<div class="col-xs-2">
													<div ng-show="data.score!=null" class="full-width text-right">
													     -<span ng-bind="data.score"></span>
													</div>
												</div>
												<div class="col-xs-4" style="padding-right: 0px;">
													<div ng-show="data.show" class="full-width text-right">
														<a ng-click="marking(2,data,warnMedicalData.code,'');">记分</a>&nbsp;
														<a ng-click="deleteStaff(data);">删除</a>
													</div>
												</div>
											</div>
											<div class="full-width full-height text-center" ng-show="!warnStaffCount || warnStaffCount <= 0">
												<div class="col-xs-1">
												</div>
												<div class="col-xs-10 " style="color:gray;padding-top: 30%;">
													<span>
														请通过右上角“新增”添加涉及医护人员信息
													</span>
												</div>
											</div>
					                </div>
				                   
				              </div>
				              <div class="col-xs-6" >
					                <div class="row" style="margin-left: -4px;">
					                    <div class="col-xs-12 title">
											<div class="col-xs-7" >
												<div class="row">
													<h6>
														<b>参保人员(<a ng-click="viewInsurList();" ng-bind="warnInsurCount"></a>)</b>
													</h6>
												</div>
											</div>
											<div class="col-xs-5 text-right" >
												<a ng-click="addInsurance();">
													<b>新增</b>
												</a>
											</div>
									    </div>
									</div>
					                <div class="row background-white full-overflow-y" style="height: 265px;margin-left: -4px;" >
					                        <div class="form-group col-xs-12" ng-class="{'cursor-pointer':data.show}" ng-mouseout="mouseoutShow(data);" ng-mouseover="mouseoverShow(data);" ng-repeat="data in warnInsurData">
											   <div class="col-xs-4" >
													<div class="row ">
														 <span ng-bind="data.name"></span>
													</div>
												</div>
												<div class="col-xs-3" >
													<div class="row">
														<span ng-bind="data.typeName">
														</span>
													</div>
												</div>
												<div class="col-xs-2">
													<div ng-show="data.score!=null" class="full-width text-right">
													     -<span ng-bind="data.score"></span>
													</div>
												 </div>
												<div class="col-xs-4" style="padding-right: 0px;">
													<div ng-show="data.show" class="full-width text-right">
														<!-- <a ng-click="marking(3,data,warnMedicalData.code,'');">记分</a>&nbsp; -->
														<a ng-click="deleteInsurance(data);">删除</a>
													</div>
												</div>
											</div>
											<div class="full-width full-height text-center" ng-show="!warnInsurCount || warnInsurCount <= 0">
												<div class="col-xs-1">
												</div>
												<div class="col-xs-10" style="color:gray;padding-top: 30%;">
													<span>
														请通过右上角“新增”添加涉及参保人信息
													</span>
												</div>
										   </div>
					                </div>
				              </div>
				         
				         </div>
		          </div>
		    </div>
		    <div  fwa-layout-box="center" padding="true" class="full-width" style="min-height: 100px;">
		             <div class="full-width background-white" style="height:38px;">
						 <ul class="nav nav-arrows">
							 <li ng-repeat="tab in tabs" ng-class="{'active':currentTab==tab.index}" ng-click="tabClick(tab.index)">
							    <div class="arrows-float" ng-show="tab.status==0" style="padding-left:8px;">
									<span class="arrows-check"></span>
								</div>
								<a>
								<b>{{tab.name}}</b>
								</a>
								<span class=arrows></span>
							 </li>
						 </ul>
					 </div>
					 <div class=" full-width">
						 <div class="full-width " ng-repeat="tab in tabs"  ng-show="currentTabIndex == tab.index" 
							 ng-include="tab.url">
						 </div>
				    </div>
				    <div class="col-xs-12" style="height:80px;">
					</div>
		    </div>
    	</div>
    </div>
    <div  fwa-layout-box="south" padding="true" class="full-width">
		        <div class="col-xs-12 text-center background-white" style="height: 60px;line-height: 60px;">
					<button type="button"  class="btn btn-primary btn-sm" ng-click="saveWarning();">
						暂存
					</button> 
					<button type="button"  class="btn btn-primary btn-sm" ng-click="submitWarning();">
						保存
					</button> 
					<button type="button"  class="btn btn-primary btn-sm" ng-click="backWarning();">
						取消
					</button> 
				</div>
    </div>
</div>
<fwa-loading data-show="saveDialogload"> 
	保存中... 
</fwa-loading>